package CommonLibrary.Commnads;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "JoinGameRequest")
public class JoinGameRequest extends Command {

    @XmlElement(required = true)
    private int gameID;
    @XmlElement(required = true)
    private int playerID;

    public JoinGameRequest()
    {
        id = 10;
    }

    public JoinGameRequest(int chosenGameId, int id)
    {
        this.id = 10;
        this.gameID = chosenGameId;
        this.playerID = id;
    }

    public int getGameID() {
        return this.gameID;
    }

    public void setGameID(int gameID) {
        this.gameID = gameID;
    }

    public int getPlayerID() {
        return this.playerID;
    }

    public void setPlayerID(int playerID) {
        this.playerID = playerID;
    }
}